package com.zyb.warehouse.service.impl;

import com.zyb.warehouse.entity.Unit;
import com.zyb.warehouse.mapper.UnitMapper;
import com.zyb.warehouse.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:单位表业务层接口实现类
 */
@Service
public class UnitServiceImpl implements UnitService {

    @Autowired
    private UnitMapper unitMapper;

    /**
     * 查询所有单位
     *
     * @return
     */
    public List<Unit> queryAllUnit() {
        return unitMapper.selectAllUnit();
    }
}
